package hello.ve;

import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.layout.GridData;

public class SimplePanel extends Composite {

	private Label labelName = null;
	private Text textName = null;
	private Button buttonLoad = null;

	public SimplePanel(Composite parent, int style) {
		super(parent, style);
		initialize();
	}

	private void initialize() {
		GridData gridData = new GridData();
		gridData.grabExcessHorizontalSpace = true;
		gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
		GridLayout gridLayout = new GridLayout();
		gridLayout.numColumns = 3;
		labelName = new Label(this, SWT.NONE);
		labelName.setText("name");
		textName = new Text(this, SWT.BORDER);
		textName.setLayoutData(gridData);
		buttonLoad = new Button(this, SWT.NONE);
		buttonLoad.setText("load");
		this.setLayout(gridLayout);
		setSize(new Point(300, 200));
	}

}
